package lumis.service.chatroom;

import lumis.collaboration.chat.ChatConversationConfig;
import lumis.doui.service.DouiServiceInterface;
import lumis.portal.PortalException;
import lumis.portal.serviceinterface.IServiceInterfaceRenderRequest;
import lumis.portal.serviceinterface.IServiceInterfaceRenderResponse;
import lumis.portal.serviceinterface.ServiceInterfaceException;

/**
 * Renders the chatRoom service's History interface.
 *
 * @version $Revision: 9940 $ $Date: 2008-12-02 12:44:32 -0200 (Tue, 02 Dec 2008) $
 * @since 4.0.11
 */
public class ChatRoomHistoryInterface extends DouiServiceInterface
{
	@Override
	public void render(IServiceInterfaceRenderRequest request, IServiceInterfaceRenderResponse response) throws ServiceInterfaceException, PortalException
	{
		if(ChatConversationConfig.CHAT_CONVERSATION_STATE_INACTIVE == ChatRoomUtil.getChatRoomConversationState(request))
			super.render(request, response);
	}
}